Pages: [1]   Go Down
Author Topic: minim library question  (Read 1576 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, good afternoon:

I'm using the minim library and I want to control a large amount of audio.

I want to not reproduce multiple sounds wing time.

I want until I finished playing a sound, do not start the next.

It can be done with a delay but that does not apply to what I do.  Use the system clock for a delay, the code gets too complex.

I want to know if there is any call to the minim library that can prevent parallel reproductions.

Or if it would be possible to put together the sounds I want to play.

For example(I know it not work):

Code:
song = minim.loadFile("hello.mp3") + minim.loadFile(a+".mp3");`

Thanks in advance
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Think you need to read a book about C/C++ programming as concatenation of char arrays is one of the things you should learn to master.
Kerningham and Ritchies 2nd edition is still worth its weight.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You know how to do?

Why is it a waste of time to read a whole book to write a line of code ....

Thanks
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1273
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Assumng your strings are character arrays and not String objects, loo up the sprintf() or strcat() functions.

I would also recommens that you read something formal if you want to get into programming. You would never try to learn a language like Russian by just reading "War and Peace" and hoping for the best.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Assumng your strings are character arrays and not String objects, loo up the sprintf() or strcat() functions.

I would also recommens that you read something formal if you want to get into programming. You would never try to learn a language like Russian by just reading "War and Peace" and hoping for the best.

Thanks for help.

"The function strcat(AudioPlayer, AudioPlayer) does not exist"

It might be necessary to include a library.....

I may need, improve my level of programming.

However, there is more than one way to do what I want, so I can keep working ...

The easier is if a function of these works.
The difficult is to use the micro timer to provide standard time for each reproduction. I could do second way, but is less efficient;) That's why I'm asking smiley-grin

A greeting


Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1273
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

string.h

Did you try googling "strcat arduino"?
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I looked, I saw that library, but have not found any site that include in processing.

#include <String.h>
Code:
char* b;
char* a;
strcat(b,a);

logically this code to arduino compile without problems......... smiley-wink
In procesing I could not do it :S

Thanks
Logged

Pages: [1]   Go Up
Jump to: