does anyone fix the problem communicating processing and arduino mega 2560 ? i decided to by this one because of it´s amount on digital pins (need 8 digital out pwm, 8 digital in for button). but there is no known way to reach pins 22 to 53, not even pins from 16 to 21 are reachable... its also not possible to usw the analog pins as digital (as known from former megas)
feels like after buying a bus, recognizing it´s a "just" a car.....
did anyone fix that? is there a way to fix that? is it possible to change frimata.
i have tried all i know, didn´t get the final idea. my problem: the soundsample is 3 sec long, if i get an "on" message (true, button pressed) sound starts playing until i get an off (false, button not pressed) message. everything is fine until i start trying fading sounds out and pressing the button again while the sound is "playing" (muted in the background or whatever cage)... i´d like to know how could i: fade out the sound on button off, and be able to start the sound again from the beginning without chopping/whispering etc?
i could: load 5times every sound, and count them through, but, i have 8 buttons, every button has 3 sounds, played in a row, and this 5 times... makes a lot of bufferusage..... thogh there are some more 4 songs to play on other events.
here is my code, i really don´t get it.
also tried soundSample soundSnippet
should i change to beads? is it just my mistakes, or probably not working in minim/processing?
i´m coding kind of a keyboard, some notes (mp3 samples) are played when buttons are pressed. everything is fine, the problem at the moment is:
i have to fade out sound (works fine) when a button is released... instantly when the button is released. an mp3 is about 10 sec. but if you release the button after 3 sec. the sound has do fade out. i always have to wait until the 10sec. are over because i don´t find a method to stop the player when the sound gain arrives at -80 for example, and the rewind it. i´d like to stop/rewind after fade out.... can anyone help?
i´d have a general question before i start coding. i have to generate some kind of "keyboard" (musicinstrument, not type keyboard). arduino will be the interface communicating hardware and software. my question is: i have mp3´s, different sounds , every sound is connected to one button on the keyboard. the goal is: if you press the button the sound plays (with a little fade in) as long as you hold the button the sound should loop, if you release the button, the sound stops playing (with a little fade out). is it the right way the note function of minim? (if the mp3 is loopable i could loop the sound, and add some attack(or volume shift) when pressing the button and the other way around releasing the button)
did anyone of you try this and do you think it works or are there some limitations, would it be better to use some other classes (midi bus etc?) where this is simpler?, am i wrong?