6cf64cc94a
template.c: move idx
to the loop scope
2024-04-10 23:32:58 +03:00
759fa6df4a
rename variable w
to time
2024-04-10 23:08:08 +03:00
19409e0860
template.c: reformat the code
2024-01-29 19:16:02 +03:00
551933cddd
C: mem. for audio: optimize; use the same function
...
Memory allocation for the audio buffer:
1. Instant mode: Use `malloc` instead of `calloc`
2. Allocate heap memory before the loop to speed up audio generation, free
the memory after the loop
3. Extract the memory allocation into a macro
2024-01-29 19:10:44 +03:00
edd95e5af0
update .gitignore to template
2024-01-29 18:45:04 +03:00
c40acdd161
template.c: use malloc
in sequential mode
2024-01-27 14:57:56 +03:00
6c16e2911c
bytebeat_compiler.py: add more CFLAGS
2024-01-27 14:01:49 +03:00
2b2786ab2c
fwrite_le.*: rename reorder_le_for_be
-> reorder_le_be
2024-01-24 19:59:05 +03:00
9c72568e00
template.c: flush stdout before the perror
call
2024-01-21 15:12:04 +03:00
b88d6d94f5
fixup for ba855735fb
2024-01-21 15:04:55 +03:00
ba855735fb
template.c: fix possible division by zero
2024-01-21 14:05:52 +03:00
c81054b6f6
fwrite_le.c: remove premature optimization
2024-01-21 13:29:34 +03:00
bd02f2b6a6
template.c: cosmetic output improvements
2024-01-12 20:58:10 +03:00
76384284fe
bytebeat_compiler.py: break on invalid mode
2024-01-12 20:53:25 +03:00
c6d9d833d0
b/c...py: use term specified
for length
2024-01-12 20:52:20 +03:00
01efd27e07
bytebeat_compiler.py: fix None
value bug
2024-01-11 23:03:45 +03:00
df239dc9bb
template.c: grammar: "into" -> "to"
2024-01-10 18:54:35 +03:00
96defbf730
template.c: use the same expression
2024-01-10 18:19:26 +03:00
a034af9e7b
LICENSE: reformat
2024-01-10 04:49:22 +03:00
8244326d22
template.c: fix conditional compilation
2024-01-10 04:17:54 +03:00
d326f32193
bytebeat_compiler.py: fix sample rate logic
2024-01-10 04:08:05 +03:00
d1906f0dc1
template.c: add sequential mode and set as default
2024-01-10 04:07:15 +03:00
67ab00c084
template.c: remove condition duplicate
2024-01-10 03:57:33 +03:00
068849fe5b
template.c: make use of FP_RETURN_TYPE
2024-01-10 00:51:26 +03:00
7934deac9e
template.c: fix CLI
2024-01-09 23:23:31 +03:00
bf67c9cce2
bytebeat_compiler.py: optimize the condition
2024-01-09 23:19:38 +03:00
8e68c840a1
bytebeat_compiler.py: fix condition bug
2024-01-09 23:14:48 +03:00
89bc7466ff
bytebeat_compiler.py: add CFLAGS_EXTRA
2024-01-09 23:09:02 +03:00
0654aec5d1
bytebeat_render.c: add custom output
2024-01-09 20:04:33 +03:00
564a9c11d8
template.c: generate bytebeat after opening file
2024-01-09 19:52:15 +03:00
a48567f4fa
template.c: output ANSI_CLEAR
only in non-silent mode
2024-01-09 19:47:04 +03:00
2f2b44de76
template.c: IS_SIGNED
check: make compile-time
2024-01-09 19:24:34 +03:00
19b2edfc4b
template.c: extract/optimize BIT_DEPTH / 8
2024-01-09 18:37:32 +03:00
c593b3e3b4
bytebeat_compiler.py: format: humanize indentation
2024-01-09 18:36:27 +03:00
c32ebba8e0
b/c...py: subst.: add type hints for replacements
2024-01-09 18:35:28 +03:00
c2b67077b2
b/c...py: call preprocessor_bool
in substitute_vars
2024-01-09 18:34:12 +03:00
d045eb7355
bytebeat_compiler.py: extract preprocessor_bool
2024-01-09 18:20:27 +03:00
65fac992d6
bytebeat_compiler.py: format: fix indentation
2024-01-09 18:20:06 +03:00
3d9a39a85c
fixup for 2f346e7f5f
2024-01-09 18:15:50 +03:00
fad6b895bb
b/c...py: extract sample rate conv. optimizations
2024-01-09 18:14:32 +03:00
bd53ac920f
bytebeat_compiler.py: add verbose mode for subst.
2024-01-09 18:04:26 +03:00
2f346e7f5f
template.c: extract return type setting
2024-01-09 17:35:27 +03:00
2e701099d0
template.c: reformat: remove empty line
2024-01-09 17:18:18 +03:00
059501dcc6
template.c: reformat
2024-01-09 17:17:17 +03:00
eb531a2fe7
template.c: bit depth < 8: fix the bug
2024-01-09 17:16:15 +03:00
16126c0b98
bytebeat_compiler.py: add argument -std=c99
2024-01-09 17:00:55 +03:00
0ff125b5f0
bytebeat_compiler.py: grammar: "Uses" -> "Accepts"
2024-01-09 16:48:34 +03:00
f067b87ba9
template.c: optimize PRODUCT - 1
2024-01-09 16:43:22 +03:00
c2791ce3fc
template.c: clarify the order of operations (2)
2024-01-09 16:40:47 +03:00
0b5f018e4f
template.c: clarify the comment
2024-01-09 16:40:03 +03:00