13
0
Commit Graph

32 Commits

Author SHA1 Message Date
Asahi Lina
d1cc71150f Adjust interpretation of swing amount
Previously,

0 -> no swing (1:1, 50%)
50 -> triplet swing (2:1, 66%)
75 -> hard swing (3:1, 75%)
100 -> sextuplet swing (5:1, 83%) (default!)
150 -> absolute maximum (inf:1, 100%)

This is rather confusing...

One common interpretation uses percentages of the beat, where triplet
swing is 66%. However, that causes precision issues since it's really
66.666...

Since we already default to 100 and take "no swing" as zero, let's make
that reference point triplet swing. Then the scale becomes:

0 -> no swing (1:1)
100 -> triplet swing (2:1)
150 -> hard swing (3:1)
200 -> sextuplet swing (5:1)
300 -> absolute maximum (inf:1)

300 doesn't make any sense, so let's change the range to -250 .. 250
which covers all useful values.

Also remove the division through 100 and back, to avoid rounding issues.

Signed-off-by: Asahi Lina <lina@asahilina.net>
2023-09-09 20:06:37 +09:00
Asahi Lina
ca25b5c841 Fix quantize threshold setting
Signed-off-by: Asahi Lina <lina@asahilina.net>
2023-09-09 20:06:37 +09:00
Asahi Lina
577918dc07 Fix quantize beat divisions
Signed-off-by: Asahi Lina <lina@asahilina.net>
2023-09-09 20:06:37 +09:00
6effcc7723 reimplement quantization without (much) floating point (GUI edition) 2021-08-13 12:51:35 -06:00
f328fdc56a adapt to DoubleableBeats and so forth (gui edition) 2021-08-13 12:51:32 -06:00
7433bc27e0 intermediate, unfinished snapshot of ongoing timeline types work on GTK GUI 2021-08-13 12:51:29 -06:00
f4490f54c5 change Timecode::BBT_Time to use Temporal namespace, plus a couple of other minor changes to enable compilation
This still uses the tempo map object in libs/ardour, not the new one in libs/temporal, and isn't likely to be functional
(though it could be)
2021-08-13 12:51:28 -06:00
0a469527f1 updated Temporal::Beats ... GUI edition 2021-08-13 12:51:28 -06:00
4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
10add0fbb9 Quantize Dialog: Use same grid names as the main grid. (1/16 Note instead of Beats/4) 2018-05-15 09:53:54 -05:00
db98341d4d Quantize Dialog: Fix quantize-to-main-grid selection. Was checking against incorrect menu entry string. 2018-05-15 09:53:44 -05:00
dc61256466 new_grid: Rewrite of Snap and Grid. (squashed commit)
Separate Snap from Grid.  Lots of naming changes.
Multiple simultaneous snap options allowed. Grid is one of the possible Snap options.
Grid uses the same data as the rulers.  Replace complicated tempo_lines with simple grid_lines.
The Grid is zoom-scale-sensitive along with the rulers.  If you are zoomed out, grid becomes coarser.
2018-02-09 09:59:39 -06:00
7db12f6b12 convert codebase to use Temporal for various time types 2017-09-24 12:03:54 -04:00
187748874c Fix a -Wsign-compare 2017-09-07 06:08:31 +02:00
91dcccb12b Fix quantization end-grid size. 2017-08-18 12:49:34 +02:00
013e3e84be Fix MIDI Quantization for internationalized Ardour.
Grid-settings are translatable, parsing a number from a translated string
e.g. "Quart de temps" for "Beats/4" failed.
2017-08-18 12:49:06 +02:00
72e2935842 minor tweak to quantize dialog so that we can test if it is visible 2016-09-27 14:59:31 -05:00
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
ec1b0890cb expand options in quantize dialog to include other beat fractions 2016-03-07 10:16:01 -05:00
2a251b4570 MusicalTime => Beats. 2015-01-07 00:12:07 -05:00
57c1b6e261 Fix quantization and other time-related ops. 2014-11-22 21:49:42 -05:00
5a41487a08 remove some 1920 tick constants and leave notes for some others. 2014-06-07 18:35:37 +02:00
Carl Hetherington
77be4a2742 Remove unused quantize type options.
git-svn-id: svn://localhost/ardour2/branches/3.0@12130 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-01 16:19:50 +00:00
Carl Hetherington
28cc3197d5 Use Quantize rather than OK in the Quantize dialogue.
git-svn-id: svn://localhost/ardour2/branches/3.0@10583 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-14 13:44:18 +00:00
ed626628b5 Delete trailing whitespace
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01 17:00:29 +00:00
Carl Hetherington
389ea5a6aa Tidy up quantize dialogue.
git-svn-id: svn://localhost/ardour2/branches/3.0@7959 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-11-04 02:05:30 +00:00
468d39ba81 add support for beats/2 quantization in dialog
git-svn-id: svn://localhost/ardour2/branches/3.0@7832 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-22 15:57:20 +00:00
d443688c92 (1) make quantize actually use the main grid setting and not just default to beats (2) apply quantize to all notes if none are selected
git-svn-id: svn://localhost/ardour2/branches/3.0@7126 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-20 15:06:30 +00:00
ce7a5e1c9f the Properties & 64bit region commit
git-svn-id: svn://localhost/ardour2/branches/3.0@6695 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-02-18 13:59:49 +00:00
d46998dae7 Add OK/Cancel buttons to quantize dialog.
git-svn-id: svn://localhost/ardour2/branches/3.0@5939 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-27 02:36:42 +00:00
bb9cc45cd2 Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red.  I don't know the emacs equivalent...


git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14 16:10:01 +00:00
710ba02c70 add quantize dialog
git-svn-id: svn://localhost/ardour2/branches/3.0@5597 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-08-27 12:47:04 +00:00