cancel
eaef5482d5
Add -Wshadow to tool build flags.
And fixes a shadowed (but harmless) loop counter warning.
5 years ago
linear_sunrise
e94c2faaae
Backspace character deletion ( #51 )
* added backspace deletion in append and insert
5 years ago
Nicola Pisanti
50d1c1cc74
change B to match orcaJS 158
5 years ago
Nicola Pisanti
c26bc5b308
change L to match orcaJS 158
5 years ago
Nicola Pisanti
b83ade4c48
reverts F to classic behavior to match orcaJS 158
5 years ago
cancel
996652ee82
Reorder `random_seed` field to waste less space.
The `Ged` struct's `random_seed` field was mistakenly placed after the
bitfield flags when it was added. It should not have been -- this wastes
space. This change moves it alongside other same-sized fields.
This change also cleans up some initialization ordering that had fallen
out of sync with the declaration ordering. This was harmless, but made
it a little bit more confusing to read.
6 years ago
cancel
6a68c2399b
Change --seed to use atoi, change init_seed to int
This avoids using `long` in orca-c, which had previous been avoided.
Using `long` comes with some baggage. It would be best to avoid it where
possible, especially since there are no other uses of it orca-c. If
explicit sizes are needed, use the types from stdint.h. The only reason
`int` is used for argument handling in orca-c's TUI is that `atoi`
requires it. `atol` doesn't provide any advantage over `atoi`, except to
allow the `--seed` option to be larger on some platforms and some
configurations. But I think it's better to have consistent argument
handling, and have `--seed` always have a range of `0..INT_MAX`, which
is going to be signed 32-bit max on almost every platform, unlike
`long`.
This change also allows init_seed to be set to 0, where it previously
was not allowed. The default still remains 1.
6 years ago
cancel
12b6d13684
Fix incorrect argument check.
Could result in underflow if a negative value is specified.
6 years ago
cancel
e53c7a15c3
Merge branch 'classic'
6 years ago
cancel
2b722c0f67
Fix incorrect capacity adjustment in Oevent list
Was capped at 16 instead of properly growing as it should have.
6 years ago
Nicola Pisanti
058d5ab589
add --seed option
6 years ago
Nicola Pisanti
733ee3ae99
adds --nomouse option when compiling
6 years ago
Nicola Pisanti
65908306ef
changes V and K to match orcaJS, fixes #48
6 years ago
cancel
2e12e63e7a
Remove broken pseudo-random algorithm
Caused undefined behavior on left-shift overflow. This could lead to
either code-erasure by compiler or garbage data left in a register,
possibly corrupting heap.
6 years ago
cancel
af16296b99
Revert "deactivate mouse by default, ..."
This reverts commit 7f06b5f830
.
6 years ago
Nicola Pisanti
7f06b5f830
deactivate mouse by default, #define ORCA_USES_MOUSE 1 for activate
6 years ago
Nicola Pisanti
25a2df03db
update L to match orcaJS
6 years ago
Nicola Pisanti
bc56c51c61
reverts tui methods to int for avoiding overflow, fixes #46
6 years ago
Nicola Pisanti
624a27200c
updates L to match orcaJS, fixes #41
6 years ago
Nicola Pisanti
18b164f740
Merge pull request #36 from npisanti/master
less deterministic random
6 years ago
Nicola Pisanti
cb32eaa7b4
Merge pull request #45 from attejensen/ruler_jumps
Ctrl makes cursor jump according to ruler spacing
Only works in some terminals.
6 years ago
Atte JEnsen
906b114c76
ctrl makes cursor jump according to ruler spacing
6 years ago
Nicola Pisanti
2fee3a706b
less deterministic random
6 years ago
Devine Lu Linvega
f420ec5e6c
Added details for RPi
6 years ago
Devine Lu Linvega
8dd2fd9655
Colorized ports properly, fixed #34
6 years ago
Devine Lu Linvega
9425d2a601
Always play by default
6 years ago
Nicola Pisanti
c980c1442a
Merge pull request #35 from npisanti/master
random max now defaults to 36
6 years ago
Nicola Pisanti
e817cf5d5e
random max now defaults to 36
6 years ago
Nicola Pisanti
1a65a4931e
Merge pull request #33 from npisanti/master
adds step port to L
6 years ago
Nicola Pisanti
ce9aabaf75
adds step port to L
6 years ago
Nicola Pisanti
e29a3d1b28
Merge pull request #32 from npisanti/master
replaces zig with lerp
6 years ago
Nicola Pisanti
0b3dd23d4e
replaces zig with lerp
6 years ago
Nicola Pisanti
2213ac8396
Merge pull request #31 from npisanti/master
replaces banger with bounce operator
6 years ago
Nicola Pisanti
3e45ae73d5
replaces banger with bounce operator
6 years ago
Nicola Pisanti
d1de810c75
Merge pull request #30 from npisanti/master
U is now the uclid operator
6 years ago
Nicola Pisanti
ba44c6f1cf
U is now the uclid operator
6 years ago
Devine Lu Linvega
feab5f0d62
Renamed and fixed overflow in M
6 years ago
Devine Lu Linvega
20de73bb10
Replace modulo with multiply operator, fixes #24
6 years ago
Devine Lu Linvega
8963d7d795
Removed extra check from F
6 years ago
Лu Лinveгa
df0e1276ec
Merge pull request #22 from npisanti/master
changes A C D F I to match orcaJS
6 years ago
Nicola Pisanti
a53ce88328
changes A C D F I to match orcaJS
6 years ago
Bequa La Froth
fd0c4b9b42
Add --bpm option ( #19 )
* Add --bpm option
* Fix bpm bounds, and formatting
* Prevent int overflow on bpm adjust
* Prevent int overflow in overflow-guard
6 years ago
cancel
86dd6be4f4
Fix formatting
6 years ago
Лu Лinveгa
c172296d07
Merge pull request #12 from npisanti/master
porting of K operator from orcaJS
6 years ago
cancel
11fb32dec8
Fix shellcheck SC1117
Harmless in this case, but annoying to see.
6 years ago
cancel
3e3298f948
Guard use of -march=nehalem to gcc >= 4.9
Fixes #14
6 years ago
Nicola Pisanti
9c55802d55
porting of K operator from orcaJS
6 years ago
cancel
32ca897ef9
Merge pull request #11 from npisanti/master
6 years ago
Nicola Pisanti
762337b0f6
changes R to max exclusive to match orca-js behavior
6 years ago
Nicola Pisanti
75de43b44c
changes V to match orca-js behavior
try to divide commits
6 years ago