-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Let sample tracks play from any song position #3133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
025a8b4
849f063
a313ee7
6ce7fed
df89f67
1250eab
ae6c1ea
d784d75
b04f8b8
daf14a4
5205f53
80db907
bdc5c51
461a0e1
869890f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -269,7 +269,6 @@ void Song::processNextBuffer() | |
| ( tl->loopBegin().getTicks() * 60 * 1000 / 48 ) / getTempo(); | ||
| m_playPos[m_playMode].setTicks( | ||
| tl->loopBegin().getTicks() ); | ||
| emit updateSampleTracks(); | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -339,14 +338,17 @@ void Song::processNextBuffer() | |
| // if looping-mode is enabled and we have got | ||
| // past the looping range, return to the | ||
| // beginning of the range | ||
| if( m_playPos[m_playMode] == tl->loopEnd() - 1 ) | ||
| { | ||
| emit updateSampleTracks(); | ||
| } | ||
| if( m_playPos[m_playMode] >= tl->loopEnd() ) | ||
| { | ||
| m_playPos[m_playMode].setTicks( tl->loopBegin().getTicks() ); | ||
|
|
||
| m_elapsedMilliSeconds = | ||
| ( ( tl->loopBegin().getTicks() ) * 60 * 1000 / 48 ) / | ||
|
||
| getTempo(); | ||
| emit updateSampleTracks(); | ||
| } | ||
| } | ||
| else | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also switch them, as the second one is likely to be true more often.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea. I've changed this.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should just try and move the whole loop one tick earlier. (in if( checkLoop ) )
to something like (pseudocodeish...):