Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Image-based music synthesiser

Name: Anonymous 2009-06-22 16:19

Imagine Brainloller, except instead of outputting characters and maybe doing a sum or two, it outputs noises and controls the attributes of a set number of oscillators. Perhaps different RGB values correspond to different operations and methods; consider logic-based control structures, complex polyphonic multiple-oscillator multiplicative synthesis combined with ENTERPRISE-LEVKidding. and waveform modifiability to boot.

Thoughts, /prog/? Contributive comments? Language? If it's anything other than C I'll be learning that as I go along. Am I reinventing a wheel somewhere?

I haven't read SICP in the last couple of days, and I just thought of this about 20 seconds prior to starting this post.

Name: Anonymous 2009-06-22 16:36

So it would be like Brainfuck hooked to a speaker instead of a printer? Sounds kind of iffy.

Name: Anonymous 2009-06-22 17:06

Make a csound operator.

Do it Anon!

Name: Anonymous 2009-06-22 17:45

Each pixel would be a statement (obviously), and each statement would be evaluated at intervals (maybe set by a clock speed thing or something).
The current instruction thingy would continue moving in a direction until it hit a control statement, where it could even clone itself and move off in separate directions, doing many things at once.
Oscillators would have properties like amplitude, frequency (or MIDI note and pitch bend), waveform, etc; or maybe they could chain with each other -
O1 uses O2 as input 1;
O1 uses O3 as input 2;
O1 uses sum of inputs as output;

Something like that. It's all a theory right now, I'm kind of using /prog/ as an interactive notebook of sorts.

Name: Anonymous 2009-06-22 18:14

there's pd/gem which ive been meaning to look into, but havent got round to it yet

Name: Anonymous 2009-06-22 18:35

Why, though? Do you have a rationale?

Name: Anonymous 2009-06-22 18:46

>>6
Not really. Just an idea. Someday I might actually do this and make some simple arpeggios or something, then stop because it got too complicated.

Name: Anonymous 2009-06-22 18:52

Do it. In C, so you can post the source and i can read it.

Name: Anonymous 2009-06-22 20:33

>>8
But he could do that with any language!

Name: Anonymous 2009-06-22 20:39

>>9
False. Only C code can be posted on the Internet. This is why all free software projects are in C.

Name: Anonymous 2009-06-22 20:45

python + pygame

has image processing and sound generation

Name: Anonymous 2009-06-22 20:46

>>10
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)

Name: Anonymous 2009-06-22 21:20

>>12
get a better algorithm.
makeFibs :: (Integer, Integer) -> [Integer]
makeFibs (a, b) = let f@(_:t) = makeFibs (a,b)
                      in a : b : zipWith (+) f t

fibs = makeFibs (0, 1)

twoFibs :: Integer -> (Integer, Integer)
twoFibs 0 = (1, 0)
twoFibs n = let q = shiftR n 1
                r = n .&. 1
                (a, b) = twoFibs q
                x = a * a + b * b
                y = b * (2 * a + b)
                in case r of
                        0 -> (x, y)
                        1 -> (y, x + y)

fib n = let q = shiftR (abs n) 2
            r = n .&. 1
            (a, b) = twoFibs (q + r)
            in case r of
                    0 -> b * (2 * a + b)
                    1 -> a * a + b * b

fibsFrom = makeFibs . twoFibs

Name: Anonymous 2009-06-22 21:20

>>12
Broken code doesn't count.

Name: Anonymous 2009-06-22 21:47

>>13
a couple fixes:
s/2 \* a/shiftL a 1/g
s/s$/s . succ/

Name: Anonymous 2013-04-22 22:27

aye

Name: Anonymous 2013-04-23 14:00



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-23 14:09



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-23 14:20



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-23 14:37



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-07-15 12:30


Don't change these.
Name: Email:
Entire Thread Thread List