[sc-users] plotting a buffer in a gui panel

0001 0001 at ooo000ooo.org
Tue Oct 23 00:08:49 PDT 2007


You may also try using a ram disk and loadToFloatArray, it's a dirty  
hack of course but it works...

you create it with a script like

#!/bin/bash
VolumeName="RAMDisk"
SizeInMB=128
NumSectors=$((2*1024*SizeInMB))
DeviceName=`hdid -nomount ram://$NumSectors`
echo $DeviceName
diskutil eraseVolume HFS+ RAMDisk $DeviceName

--

then just set the path to this disk in PathName.tmp



.
g


El Oct 22, 2007, a las 9:48 PM, Scott Wilson escribió:

> Hey Dan,
>
> I don't think you can do this in a straightforward way. I suppose a  
> modified SCScope could do this and would be useful, but I don't  
> think it would work in its current form.
>
> There is of course Buffer:plot, but that's a lot of data to throw  
> around if you want it to update as recording is happening. Probably  
> best would be to mirror the data clientside in an array, and update/ 
> draw that with getn, taking a small chunk at a time. That might work.
>
> S.
>
> On 22 Oct 2007, at 15:38, Dan Stowell wrote:
>
>> Hi -
>>
>> I have a GUI for a setup in which audio is recorded/played back on
>> buffers. Would like to have little ".plot"-like panels showing each
>> waveform. What's the best way of doing this?
>>
>> I'm not sure if SCSoundFileView is right because I'm not working with
>> audio that's on disk, just audio that exists in buffers. I tried  
>> to do
>> it with SCSoundFileView anyway and got a bit stuck. I'd be grateful
>> for a simple example, or just some guidance...
>>
>> Thanks
>> Dan
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users




More information about the sc-users mailing list