1
0
Commit Graph

122 Commits

Author SHA1 Message Date
9be6408890
b/c...py: optimize adding . before paths 2024-05-19 12:46:19 +03:00
162e6b880c
template.c: reformat 2024-05-19 12:39:18 +03:00
91dddefc7b
b/c...py: fix terminology: Solve -> Resolve 2024-05-19 12:35:18 +03:00
0be65f7dd2
move *.h to include/ 2024-05-19 12:34:15 +03:00
4b8211dd1a
template.c: explain sample data length subtraction 2024-05-19 12:10:31 +03:00
110b065459
template.c: stringize integers where applicable 2024-05-19 12:02:14 +03:00
c76c809d2a
separate WAVE product value and generation length 2024-05-19 11:41:52 +03:00
e4a64e1ac6
template.c: optimize printf(..."\n") to puts(...) 2024-05-19 11:32:21 +03:00
2c4101ae82
template.c: fix ChunkSize file size 2024-05-19 11:25:23 +03:00
e7fd7131d1
bytebeat_compiler.py: fix wav_product calculation 2024-05-19 10:57:33 +03:00
fa1180e222
template.c: optimize a printf call 2024-05-19 10:37:40 +03:00
b8b2719349
bytebeat_compiler.py: return the exit code the compiler returns 2024-04-14 16:28:21 +03:00
43e4b6f6a9
template.c: ceil division result when finding minimum byte amount 2024-04-14 16:09:37 +03:00
c6d6759ffc
template.c: main: use return instead of exit() 2024-04-14 16:05:07 +03:00
102618a21a
template.c: exit codes: use EXIT_SUCCESS instead of 0 2024-04-14 15:59:43 +03:00
697a4e8408
bytebeat_compiler.py: comment: enclose the word "return" in backticks 2024-04-14 12:30:44 +03:00
8e698c9f3b
bytebeat_compiler.py: auto-return: enclose bytebeat in parentheses 2024-04-14 12:29:12 +03:00
cc2974afe1
bytebeat_compiler.py: line width wrap at 80 characters 2024-04-14 11:55:04 +03:00
c3a2de8333
C: precalculate PRODUCT in the Python script 2024-04-14 11:47:51 +03:00
c9825b9122
bytebeat_compiler.py: use cc instead of gcc as default compiler 2024-04-14 01:38:48 +03:00
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