MCPcopy Create free account
hub / github.com/LMMS/lmms / AutomationPattern

Method AutomationPattern

src/core/AutomationPattern.cpp:44–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44AutomationPattern::AutomationPattern( AutomationTrack * _auto_track ) :
45 TrackContentObject( _auto_track ),
46 m_autoTrack( _auto_track ),
47 m_objects(),
48 m_tension( 1.0 ),
49 m_progressionType( DiscreteProgression ),
50 m_dragging( false ),
51 m_isRecording( false ),
52 m_lastRecordedValue( 0 )
53{
54 changeLength( MidiTime( 1, 0 ) );
55 if( getTrack() )
56 {
57 switch( getTrack()->trackContainer()->type() )
58 {
59 case TrackContainer::BBContainer:
60 setAutoResize( true );
61 break;
62
63 case TrackContainer::SongContainer:
64 // move down
65 default:
66 setAutoResize( false );
67 break;
68 }
69 }
70}
71
72
73

Callers

nothing calls this directly

Calls 6

MidiTimeClass · 0.85
keyMethod · 0.80
typeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected