Browse Source

Sequencer: Fix pattern insertion trigger length on phrase.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
b8184ac910
2 changed files with 2 additions and 7 deletions
  1. +1
    -6
      sequencer/src/phrase.C
  2. +1
    -1
      sequencer/src/phrase.H

+ 1
- 6
sequencer/src/phrase.C View File

@@ -126,13 +126,8 @@ phrase::by_number ( int n ) const
}

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.
pattern *p = pattern::pattern_by_number( y + 1 );



+ 1
- 1
sequencer/src/phrase.H View File

@@ -51,7 +51,7 @@ public:
phrase *create ( void );
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 );
const char * row_name ( int r ) const;
void draw_row_names ( Canvas *c ) const;


Loading…
Cancel
Save