Sequencer: Fix pattern insertion trigger length on phrase.

This commit is contained in:
Jonathan Moore Liles 2013-05-06 23:31:02 -07:00
parent a30d065cb7
commit b8184ac910
2 changed files with 2 additions and 7 deletions

View File

@ -126,13 +126,8 @@ phrase::by_number ( int n ) const
} }
void void
phrase::put ( int x, int y, tick_t l ) phrase::put ( int x, int y, tick_t l, int velocity )
{ {
// FIXME: fix insertion length to the length of the pattern
// referred to by this row.
l = 4;
// FIXME: use translation here. // FIXME: use translation here.
pattern *p = pattern::pattern_by_number( y + 1 ); pattern *p = pattern::pattern_by_number( y + 1 );

View File

@ -51,7 +51,7 @@ public:
phrase *create ( void ); phrase *create ( void );
phrase * by_number ( int n ) const; phrase * by_number ( int n ) const;
void put ( int x, int y, tick_t l ); virtual void put ( int x, int y, tick_t l, int velocity = 64 );
phrase * clone ( void ); phrase * clone ( void );
const char * row_name ( int r ) const; const char * row_name ( int r ) const;
void draw_row_names ( Canvas *c ) const; void draw_row_names ( Canvas *c ) const;