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
|
Luppp est un outil de création musicale pensé pour une
|
||||||
utilisation live. Il se concentre sur l'utilisation en
|
utilisation live. Il se concentre sur l'utilisation en
|
||||||
temps-réel et une expérience utilisateur intuitive et
|
temps-réel et une expérience utilisateur intuitive et
|
||||||
rapide. Il a été développé depuis Décembre 2011, et plusieurs
|
rapide. Il est en développement depuis Décembre 2011, et
|
||||||
éléments de développement ont été complété. Lupp utilise
|
plusieurs fonctionnalités en développement ont été complétées.
|
||||||
jack pour sortie audio. </p>
|
Lupp utilise jack en tant que sortie audio.
|
||||||
|
</p>
|
||||||
</description>
|
</description>
|
||||||
<screenshots>
|
<screenshots>
|
||||||
<!-- the width and height are optional, but suggested -->
|
<!-- the width and height are optional, but suggested -->
|
||||||
|
|
|
@ -267,7 +267,14 @@ Jack::~Jack()
|
||||||
void Jack::activate()
|
void Jack::activate()
|
||||||
{
|
{
|
||||||
jack_activate( client );
|
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()
|
void Jack::quit()
|
||||||
|
|
|
@ -80,6 +80,8 @@ class Jack
|
||||||
GridLogic* getGridLogic(){return gridLogic;}
|
GridLogic* getGridLogic(){return gridLogic;}
|
||||||
TimeManager* getTimeManager(){return timeManager;}
|
TimeManager* getTimeManager(){return timeManager;}
|
||||||
ControllerUpdater* getControllerUpdater(){return controllerUpdater;}
|
ControllerUpdater* getControllerUpdater(){return controllerUpdater;}
|
||||||
|
|
||||||
|
void transportRolling(bool rolling);
|
||||||
|
|
||||||
/// register a MIDI observer
|
/// register a MIDI observer
|
||||||
void registerMidiIO( MidiIO* mo );
|
void registerMidiIO( MidiIO* mo );
|
||||||
|
|
|
@ -33,8 +33,8 @@ Metronome::Metronome() :
|
||||||
TimeObserver(),
|
TimeObserver(),
|
||||||
playBar (false),
|
playBar (false),
|
||||||
active (false),
|
active (false),
|
||||||
playPoint (0),
|
vol (1),
|
||||||
vol (1)
|
playPoint (0)
|
||||||
{
|
{
|
||||||
//Create Beat/Bar samples
|
//Create Beat/Bar samples
|
||||||
beatSample=new float[jack->getSamplerate()];
|
beatSample=new float[jack->getSamplerate()];
|
||||||
|
|
|
@ -33,8 +33,8 @@ extern Jack* jack;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
TimeManager::TimeManager():
|
TimeManager::TimeManager():
|
||||||
observers(),
|
transportState( TRANSPORT_ROLLING ),
|
||||||
transportState( TRANSPORT_ROLLING )
|
observers()
|
||||||
{
|
{
|
||||||
samplerate = jack->getSamplerate();
|
samplerate = jack->getSamplerate();
|
||||||
// 120 BPM default
|
// 120 BPM default
|
||||||
|
@ -162,6 +162,10 @@ int TimeManager::getNframesToBeat()
|
||||||
void TimeManager::setTransportState( TRANSPORT_STATE s )
|
void TimeManager::setTransportState( TRANSPORT_STATE s )
|
||||||
{
|
{
|
||||||
transportState = s;
|
transportState = s;
|
||||||
|
if(transportState == TRANSPORT_STOPPED)
|
||||||
|
jack->transportRolling(false);
|
||||||
|
else
|
||||||
|
jack->transportRolling(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimeManager::process(Buffers* buffers)
|
void TimeManager::process(Buffers* buffers)
|
||||||
|
|
Loading…
Add table
Reference in a new issue