Show
Ignore:
Timestamp:
02/21/09 01:29:28 (4 years ago)
Author:
wolke
Message:

mege 833 from trunk

Location:
branches/new_fx_rack_and_sample_fun
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/new_fx_rack_and_sample_fun

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/new_fx_rack_and_sample_fun/libs/hydrogen/src/sampler/sampler.cpp

    r781 r834  
    372372 
    373373        int nNoteLength = -1; 
    374         if ( pNote->get_lenght() != -1 ) { 
    375                 nNoteLength = ( int )( pNote->get_lenght() * __audio_output->m_transport.m_nTickSize ); 
     374        if ( pNote->get_length() != -1 ) { 
     375                nNoteLength = ( int )( pNote->get_length() * __audio_output->m_transport.m_nTickSize ); 
    376376        } 
    377377 
     
    522522{ 
    523523        int nNoteLength = -1; 
    524         if ( pNote->get_lenght() != -1 ) { 
    525                 nNoteLength = ( int )( pNote->get_lenght() * __audio_output->m_transport.m_nTickSize ); 
     524        if ( pNote->get_length() != -1 ) { 
     525                nNoteLength = ( int )( pNote->get_length() * __audio_output->m_transport.m_nTickSize ); 
    526526        } 
    527527        float fNotePitch = pNote->get_pitch() + fLayerPitch; 
     
    786786 
    787787 
    788 void Sampler::setPlayingNotelenght( Instrument* instrument, unsigned long ticks, unsigned long noteOnTick ) 
     788void Sampler::setPlayingNotelength( Instrument* instrument, unsigned long ticks, unsigned long noteOnTick ) 
    789789{ 
    790790        if ( instrument ) { // stop all notes using this instrument 
     
    815815                 
    816816                if ( currentPattern ) { 
    817                                 int patternsize = currentPattern->get_lenght(); 
     817                                int patternsize = currentPattern->get_length(); 
    818818         
    819819                                for ( unsigned nNote = 0 ; 
    820                                 nNote < currentPattern->get_lenght() ; 
     820                                nNote < currentPattern->get_length() ; 
    821821                                nNote++ ) { 
    822822                                        std::multimap <int, Note*>::iterator pos; 
     
    829829                                                                if ( pNote->get_instrument() == instrument 
    830830                                                                && pNote->get_position() == noteOnTick ) { 
    831                                                                         AudioEngine::get_instance()->lock("Sample::setnotelenght_event"); 
     831                                                                        AudioEngine::get_instance()->lock("Sample::setnotelength_event"); 
    832832                                         
    833833                                                                        if ( ticks >  patternsize )  
    834834                                                                                ticks = patternsize - noteOnTick; 
    835                                                                         pNote->set_lenght( ticks ); 
     835                                                                        pNote->set_length( ticks ); 
    836836                                                                        Hydrogen::get_instance()->getSong()->__is_modified = true; 
    837837                                                                        AudioEngine::get_instance()->unlock(); // unlock the audio engine 
     
    841841                                                                if ( pNote->get_instrument() == pEngine->getSong()->get_instrument_list()->get( pEngine->getSelectedInstrumentNumber()) 
    842842                                                                && pNote->get_position() == noteOnTick ) { 
    843                                                                         AudioEngine::get_instance()->lock("Sample::setnotelenght_event"); 
     843                                                                        AudioEngine::get_instance()->lock("Sample::setnotelength_event"); 
    844844                                                                        if ( ticks >  patternsize )  
    845845                                                                                ticks = patternsize - noteOnTick; 
    846                                                                         pNote->set_lenght( ticks ); 
     846                                                                        pNote->set_length( ticks ); 
    847847                                                                        Hydrogen::get_instance()->getSong()->__is_modified = true; 
    848848                                                                        AudioEngine::get_instance()->unlock(); // unlock the audio engine