| To Adam and peiman,
I forgot to add that in an image you have 2 more dimensions (3 with
alpha) than a FFT analysis. I can use this extra information to compose
with more parameters available.
Ciao,
- c.
Cesare Marilungo wrote:
> The first idea makes sense, now that I think of it, but it would mean
> throwing away two evenings of studying the gimp documentation and
> coding a proof of concept (which is ready btw). :-)
>
> The second makes sense too. But isn't the csound score already a
> custom data file? I mean is there something I can't do with it that
> would be better addressed by an instrument opcode?
>
> My code so far output a score with a line for each pixel, in this format:
>
> i (pixel x coord) (pixel y coordinate,
> scaled 0.0 to 1.0) intensity(r/3+g/3+b/3) redvalue greenvalue bluevalue.
>
> This is all the information contained in the image.
>
> In the orchestra I can write the instrument to use the y coordinate as
> the frequency (linearly), so if I write my instrument like this:
>
> instr 1
> xtratim .02
> kenv linseg 0, .01, 1, p3-.01, 1, .01, 0
> aout oscil kenv, p4*20000.0, 1 ;where f1 is a one period sinusoid table
> outs aout*p5, aout*p5
> endin
>
> it is more or less like one would do with pvadd and a pvoc file. Am I
> wrong? But I can use the data in any other way.
>
> Instead, If I want to map the height of the image to a scale of notes
> I can do something like this:
>
> istartingnote=36
> ioctaves = 3
> aout oscil kenv, cpsmidinn(p4*ioctaves*12+istartingnote*12), 1
>
>
> What do you (all) think?
>
> - c.
>
> Michael Gogins wrote:
>> You could write a plugin Csound opcode to parse the image file
>> directly, or to parse a custom data file that your GIMP plugin would
>> write.
>>
>> Regards,
>> Mike
>>
>> -----Original Message-----
>>
>>> From: Cesare Marilungo
>>> Sent: Nov 16, 2007 11:32 AM
>>> To: csound@lists.bath.ac.uk
>>> Subject: [Csnd] Poor man's MetaSynth (was: Re: Re: Re: Re: Re: Re:
>>> [ot] - Old Moog 900 Series Demo)
>>>
>>> Cool. Blue is such a great tool!
>>>
>>> In the meantime I'll post to the list the code I'm working on as
>>> soon as I have something usable. BTW, I'm writing it in C in the
>>> form of a Gimp plugin. In this way one can use all the tools
>>> available in Gimp (which are far more than those in MetaSynth) to
>>> manipulate the image and then invoke the plugin to output the score
>>> for csound, so that in csound you can choose to render it with
>>> whatever instrument (not necessarily a sinusoid).
>>>
>>> As I wrote in my previous post the limit is only that big images
>>> produce huge scores, which are slow to be parsed in csound. Anybody
>>> know a workaround for this?
>>>
>>> I agree on Iannix. It's an interesting project but hasn't much to do
>>> with the UPIC.
>>>
>>> Ciao,
>>>
>>> -c.
>>>
>>> Steven Yi wrote:
>>>
>>>> Oh that's a different issue altogether; I've long wanted to create
>>>> both a SoundObject for image->sound like MetaSynth but also a line
>>>> drawing based one like UPIC (and not IANNIX, which has nothing to do
>>>> with the original UPIC in my opinion). Unfortunately time hasn't ever
>>>> made itself available to me to implement (it's been on a todo list for
>>>> over 4 years now...). =(
>>>>
>>>> So, I'm certainly interested; maybe I'll do some research back into
>>>> the issue during December or January.
>>>>
>>>> steven
>>>>
>>>>
>>>> On Nov 16, 2007 4:35 AM, Cesare Marilungo
>>>> wrote:
>>>>
>>>>> Sorry, I wasn't referring to a sonogram, but to the inverse operation
>>>>> (generating sound from an image).
>>>>>
>>>>> I don't know if there's a name for this.
>>>>>
>>>>> Back when I was using Macs I played a bit with Metasynth.
>>>>>
>>>>> Btw, I'm toying with the idea of implementing something similar on
>>>>> gnu/Linux. I've already hacked some code to generate a score for
>>>>> csound
>>>>> from an image but it seems that csound takes a lot of time to process
>>>>> very big scores (>1 Mb).
>>>>>
>>>>> As I'm writing this, my pc is still processing a 8Mb score (started
>>>>> 1hour ago). It hasn't started rendering yet.
>>>>>
>>>>> The score is just a really long sequence of lines like this:
>>>>>
>>>>> i1 0 1 0.1 100
>>>>> i1 1 1 0.3 100
>>>>> ...
>>>>>
>>>>> p2 is the x coordinate of each pixel the image, p4 is y (scaled
>>>>> from 0
>>>>> to 1) and p5 is the intensity. It is then rendered with this basic
>>>>> instrument:
>>>>>
>>>>> instr 1
>>>>> xtratim .02
>>>>> irnd = rnd(1)
>>>>> kenv linseg 0, .01, 1, p3-.01, 1, .01, 0
>>>>> aout oscil kenv, p4*20000.0, 1, irnd
>>>>> outs aout*p5, aout*p5
>>>>> endin
>>>>>
>>>>> Ciao,
>>>>>
>>>>> -c.
>>>>>
>>>>>
>>>>> Steven Yi wrote:
>>>>>
>>>>>> Hi Cesare,
>>>>>>
>>>>>> Haven't thought about it but something like that would be
>>>>>> interesting,
>>>>>> but I think might require using the Csound API, which I have not yet
>>>>>> done.
>>>>>>
>>>>>> If you're interested please add a request for enhancement on the
>>>>>> blue
>>>>>> tracker (accessible from the blue help menu) with details on how you
>>>>>> imagine it working and I can try taking a look when time becomes
>>>>>> available.
>>>>>>
>>>>>> Thanks!
>>>>>> steven
>>>>>>
>>>>>> On Nov 15, 2007 6:31 AM, Cesare Marilungo
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>> Cesare Marilungo wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Steven Yi wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> I came across this today:
>>>>>>>>>
>>>>>>>>> http://www.moogarchives.com/moogdemo.htm
>>>>>>>>>
>>>>>>>>> on this blog:
>>>>>>>>>
>>>>>>>>> http://orpheusrecords.blogspot.com/
>>>>>>>>>
>>>>>>>>> (which by the way has some very neat things there...)
>>>>>>>>>
>>>>>>>>> Thought others here who may be synthesizer enthusiasts might
>>>>>>>>> enjoy the
>>>>>>>>> audio demo.
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>> steven
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to this list.
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>> "unsubscribe csound"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> http://orpheusrecords.blogspot.com/search/label/Barry%20Vercoe
>>>>>>>>
>>>>>>>> Mmh... Barry Vercoe. Where have I heard this name before? :-)
>>>>>>>>
>>>>>>>> http://orpheusrecords.blogspot.com/2007/05/orpheus-record-02-edward-artemiev.html
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I love Tarkovsky's Solaris (and the novel btw) and its soundtrack.
>>>>>>>> When I saw the movie for the first time I though: "ok, the main
>>>>>>>> theme
>>>>>>>> is Bach, but who is the author of the rest of the soundtrack? It's
>>>>>>>> amazing".
>>>>>>>>
>>>>>>>> Then I found the dvd, and knew it was by Edward Artemiev.
>>>>>>>>
>>>>>>>> But I didn't know anything at all about the ANS Synthesizer:
>>>>>>>>
>>>>>>>> http://www.theremin.ru/archive/ans.htm
>>>>>>>>
>>>>>>>> This is mind blowing. =-O
>>>>>>>>
>>>>>>>> I mean it's the most intuitive and direct way of composing with
>>>>>>>> pure
>>>>>>>> sine tones one could think of. And what about 720 microtones
>>>>>>>> that can
>>>>>>>> be reproduced at the same time?
>>>>>>>>
>>>>>>>> Wow!
>>>>>>>>
>>>>>>>> -c.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> By the way... Steven, have you considered of implementing a
>>>>>>> sonogram
>>>>>>> object for Blue? It would be nice.
>>>>>>>
>>>>>>> Ciao,
>>>>>>>
>>>>>>>
>>>>>>> -c.
>>>>>>>
>>>>>>> --
>>>>>>> www.cesaremarilungo.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to this list.
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> Send bugs reports to this list.
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>>
>>>>> www.cesaremarilungo.com
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to this list.
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>>
>>>>
>>>>
>>> --
>>> www.cesaremarilungo.com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>>
>>
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>>
>>
>
>
--
www.cesaremarilungo.com
|