[CM] spear <-> grace

Heinrich Taube taube at uiuc.edu
Tue Jul 6 12:06:12 PDT 2010


the clarinet.txt file doesnt look right to me, is this someting that  
spear itself generated? i would just  use Find/Replace to substitute .  
for ,

On Jul 6, 2010, at 1:48 PM, Johannes Quint wrote:

>> sorry i dont understand what your problem actuall is -- are you  
>> saying you cant import data using 'import-spear-frames'  ??
>
> exactly. i convert in spear a wav-file to a text-file. i.e. your  
> clarinet-sample:
>
> <clarinet.txt>
>
> then, in sal:
>
> variable clar = import-spear-frames("clarinet.txt")
>
> loop for i from 0 to length(drum) - 1
>   loop for k from 1000 to 5000 by 500
>     for a = between(0.0001,0.0005)
>     spectrum-add!(drum[i],k,a)
>   end
> end
>
> now, i get in the console:
>
> >>> Error: >= argument 1, 66,912064, is symbol but should be a real
>
> the commas clarinet.txt...
> when i convert them into dots, import-spear-frames works correctly.
>
> the same vice versa: export-spear-frames creates dots and i have to
> convert them into commas not to get an error in spear.
>
>
>
>
>> if that is the case send me the spear data file you are trying to  
>> import and also the scheme or sal statement you are trying to use  
>> to load the data.
>



More information about the Cmdist mailing list