mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
Merge pull request #1 from openAVproductions/master
pull in changes from openav:master
This commit is contained in:
commit
17baee40cd
5 changed files with 22 additions and 8 deletions
|
@ -15,9 +15,10 @@
|
|||
Luppp est un outil de création musicale pensé pour une
|
||||
utilisation live. Il se concentre sur l'utilisation en
|
||||
temps-réel et une expérience utilisateur intuitive et
|
||||
rapide. Il a été développé depuis Décembre 2011, et plusieurs
|
||||
éléments de développement ont été complété. Lupp utilise
|
||||
jack pour sortie audio. </p>
|
||||
rapide. Il est en développement depuis Décembre 2011, et
|
||||
plusieurs fonctionnalités en développement ont été complétées.
|
||||
Lupp utilise jack en tant que sortie audio.
|
||||
</p>
|
||||
</description>
|
||||
<screenshots>
|
||||
<!-- the width and height are optional, but suggested -->
|
||||
|
|
|
@ -267,7 +267,14 @@ Jack::~Jack()
|
|||
void Jack::activate()
|
||||
{
|
||||
jack_activate( client );
|
||||
//jack_transport_start(client);
|
||||
}
|
||||
|
||||
void Jack::transportRolling(bool rolling)
|
||||
{
|
||||
if(rolling)
|
||||
jack_transport_start(client);
|
||||
else
|
||||
jack_transport_stop(client);
|
||||
}
|
||||
|
||||
void Jack::quit()
|
||||
|
|
|
@ -81,6 +81,8 @@ class Jack
|
|||
TimeManager* getTimeManager(){return timeManager;}
|
||||
ControllerUpdater* getControllerUpdater(){return controllerUpdater;}
|
||||
|
||||
void transportRolling(bool rolling);
|
||||
|
||||
/// register a MIDI observer
|
||||
void registerMidiIO( MidiIO* mo );
|
||||
void unregisterMidiIO( MidiIO* mo );
|
||||
|
|
|
@ -33,8 +33,8 @@ Metronome::Metronome() :
|
|||
TimeObserver(),
|
||||
playBar (false),
|
||||
active (false),
|
||||
playPoint (0),
|
||||
vol (1)
|
||||
vol (1),
|
||||
playPoint (0)
|
||||
{
|
||||
//Create Beat/Bar samples
|
||||
beatSample=new float[jack->getSamplerate()];
|
||||
|
|
|
@ -33,8 +33,8 @@ extern Jack* jack;
|
|||
using namespace std;
|
||||
|
||||
TimeManager::TimeManager():
|
||||
observers(),
|
||||
transportState( TRANSPORT_ROLLING )
|
||||
transportState( TRANSPORT_ROLLING ),
|
||||
observers()
|
||||
{
|
||||
samplerate = jack->getSamplerate();
|
||||
// 120 BPM default
|
||||
|
@ -162,6 +162,10 @@ int TimeManager::getNframesToBeat()
|
|||
void TimeManager::setTransportState( TRANSPORT_STATE s )
|
||||
{
|
||||
transportState = s;
|
||||
if(transportState == TRANSPORT_STOPPED)
|
||||
jack->transportRolling(false);
|
||||
else
|
||||
jack->transportRolling(true);
|
||||
}
|
||||
|
||||
void TimeManager::process(Buffers* buffers)
|
||||
|
|
Loading…
Add table
Reference in a new issue