White noise synthesis

41 views
Skip to first unread message

Tom

unread,
Nov 4, 2010, 8:07:14 AM11/4/10
to supercollider-android-developers
Hi,

I am trying to develop my first app for android. I would like to allow
the users to synthesize white and pink noise. Is this possible with
supercollider on android. I have never used supercollider before.

I have followed instructions in this group but have not had any
success in getting started. I have installed Cygwin and used 'make' to
use ndk-build. The IDE I am using is eclipse with the ADT plugin on a
Windows machine. Do I have to import a Supercollicer library in to the
Eclipse Project?

If anyone could help me get started I would be very grateful.

Tom

Dan Stowell

unread,
Nov 8, 2010, 4:48:47 AM11/8/10
to supercollider-an...@googlegroups.com
2010/11/4 Tom <toms...@gmail.com>:

> Hi,
>
> I am trying to develop my first app for android. I would like to allow
> the users to synthesize white and pink noise. Is this possible with
> supercollider on android. I have never used supercollider before.

Yes absolutely. First of all, you can try it in SuperCollider on your
desktop machine, by creating a synthdef and then running it:

(
SynthDef(\pinknoise, { |amp=0.1|
Out.ar(0, PinkNoise.ar(amp))
}).add
)

x = Synth(\pinknoise); // should hear sound now
x.set(\amp, 0.3); // louder...
x.free; // stop


Then you take the synthdef file that's been generated (it'll be called
pinknoise.scsyndef - see the SC docs for where it gets written, or
just search your hard disk!) and add it to your eclipse project so it
gets loaded to the phone.

See the default activity in SuperCollider-Android, it takes
"default.scsyndef" and loads it to the phone, then in the java source
code it launches it. So you'd need to tweak the java code for the
different name of the synthdef, as well as adding it into your
project.


> I have followed instructions in this group but have not had any
> success in getting started. I have installed Cygwin and used 'make' to
> use ndk-build. The IDE I am using is eclipse with the ADT plugin on a
> Windows machine. Do I have to import a Supercollicer library in to the
> Eclipse Project?

You shouldn't need to explicitly do an extra 'import'.... If you ran
the ndk-build then the library is there inside the project and will be
uploaded to the phone along with the other stuff.


> If anyone could help me get started I would be very grateful.
>
> Tom

I'll try to help but since I'm not a windows user there will be things
about the workflow I can't help with...

Dan

--
http://www.mcld.co.uk

Reply all
Reply to author
Forward
0 new messages