We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Minim: Can´t create Audioplayer Array
Page Index Toggle Pages: 1
Minim: Can´t create Audioplayer Array (Read 531 times)
Minim: Can´t create Audioplayer Array
Jan 31st, 2008, 10:42am
 
Hm, I tried this

Code:

AudioPlayer song;
AudioPlayer[] effect;

void setup()
{
 size(400, 200);

 Minim.start(this);

 song = Minim.loadFile("03 Take Five.mp3");
 song.play();

 effect = new Audioplayer[8];
 effect[0] = Minim.loadFile("HH11X10.aif");
 effect[1] = Minim.loadFile("TTHI02X25.aif");
 effect[2] = Minim.loadFile("YT-BRASS TTS SH C5X04.aif");
 effect[3] = Minim.loadFile("50A-1GA5-B2.aif");
 effect[4] = Minim.loadFile("YTELEKT14X03.aif");
 effect[5] = Minim.loadFile("YTELEKT24X07.aif");
 effect[6] = Minim.loadFile("YTELEKT24X14.aif");
 effect[7] = Minim.loadFile("YT-BRASS TTS SH D3X03.aif");


but I get:

Type "Audioplayer" was not found.
Hm... what to do?

greetings ascorbin
Re: Minim: Can´t create Audioplayer Array
Reply #1 - Jan 31st, 2008, 1:30pm
 
The p of player needs to be capitalised.
Re: Minim: Can´t create Audioplayer Array
Reply #2 - Jan 31st, 2008, 1:49pm
 
Oh Lord! Thank you, I was so blind!
Page Index Toggle Pages: 1