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 › Sound Cipher tempo problem
Page Index Toggle Pages: 1
Sound Cipher tempo problem (Read 1395 times)
Sound Cipher tempo problem
Apr 11th, 2009, 9:02pm
 
Hi,
When a function plays a sound cipher score, the tempo instruction seems to be valuable only the first time the function is called and when the score is saved as a midi file, the tempo is always set at the default value (120). Example of a code that has this problem:
Code:

import arb.soundcipher.*;
import arb.soundcipher.constants.*;

float chord[] = {60,64,67};

SCScore mus = new SCScore();

void setup()
{
 
}

void draw()
{
 
}

void mousePressed()
{
 mus.stop();
 mus.empty();
 
 mus.tempo(200);
 
 mus.addChord(0,0,0,chord,60,1,0.8,64);
 mus.addChord(1,0,0,chord,60,1,0.8,64);
 
 mus.play();
 mus.writeMidiFile("C:/mus.mid");
}

thanks !
Re: Sound Cipher tempo problem
Reply #1 - May 18th, 2009, 8:06am
 
Tempo persistence is fixed in beta version 8 of SoundCipher.

Thanks for the bug report.
Re: Sound Cipher tempo problem
Reply #2 - May 27th, 2009, 10:02pm
 
Thank you for this bug fix !
I have not tried the new version of sound cipher yet, but i will do so very soon.
Re: Sound Cipher tempo problem
Reply #3 - Sep 21st, 2009, 11:26pm
 
Hello,
When saving a score as a midi file, the tempo indication still do not seem to be taken in account. The created midi file has always a tempo at 120, even when the score has a different tempo indecation.
Page Index Toggle Pages: 1