]> _ Git - colon3utau.git/commitdiff
aa
authorparking_turkeys <roya1060wien@gmail.com>
Sat, 29 Aug 2026 19:36:37 +0000 (15:36 -0400)
committerparking_turkeys <roya1060wien@gmail.com>
Sat, 29 Aug 2026 19:36:37 +0000 (15:36 -0400)
.gitignore [new file with mode: 0644]
pitch_notes.txt
render/.render.h.swp [new file with mode: 0644]
render/.tools.c.swp [new file with mode: 0644]
render/render.h
render/tools.c [new file with mode: 0644]
render/ust_process.c
useful.c
ustnotes.txt
utau.h

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..7f3cb10
--- /dev/null
@@ -0,0 +1,2 @@
+*.gch
+*.exe
index 94567a1..226efde 100644 (file)
@@ -89,7 +89,7 @@ struct PitchPoint {
        //other random shit
 };
 
-so i dont want to just copy openutau but i might have to copy the base64 stuff because no idea of how else to do it LMAO
+so i dont want to just copy openutau but i might have to copy the base64+pitch stuff because no idea of how else to do it LMAO
 DONT FORGET TO ADD THE MIT LICENSE  
 
 
diff --git a/render/.render.h.swp b/render/.render.h.swp
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/render/.tools.c.swp b/render/.tools.c.swp
new file mode 100644 (file)
index 0000000..6b002b7
Binary files /dev/null and b/render/.tools.c.swp differ
index eb10eb2..fbb5926 100644 (file)
 int process_ust(char *wavtool_path, char *resampler_path, char *voicebank_path,
                char *UST_path);
 
-//wavtool.c
-int call_wavtool(char *wavtool_path, struct USTinfo *ust_settings, struct 
-               USTnote *note, char *oto_path);
-
-//resampler.c
-int call_resampler(char *resampler_path, struct USTinfo *ust_settings, struct
-               USTnote *note, char *oto_path);
+//tools.c
+int process_note(struct USTinfo *settings, struct USTnote *note);
+//int call_wavtool(char *wavtool_path, struct USTinfo *ust_settings, struct 
+               //USTnote *note, char *oto_path);
+//int call_resampler(char *resampler_path, struct USTinfo *ust_settings, struct
+               //USTnote *note, char *oto_path);
 
 
 
diff --git a/render/tools.c b/render/tools.c
new file mode 100644 (file)
index 0000000..f3a862f
--- /dev/null
@@ -0,0 +1,29 @@
+#include "render.h"
+
+static int call_wavtool  (struct USTinfo *ust_settings, struct USTnote *note);
+static int call_resampler(struct USTinfo *ust_settings, struct USTnote *note);
+
+static char curr_note_file[10]; // n0000.wav\0
+static int notes_done = 0;
+
+int process_note  (struct USTinfo *settings, struct USTnote *note)
+{
+       call_resampler(settings, note);
+       call_wavtool  (settings, note);
+
+       return 1;
+};
+
+int call_resampler(struct USTinfo *s, struct USTnote *n)
+{
+       sprintf(curr_note_file, "n%04d.wav
+
+int call_wavtool  (struct USTinfo *s, struct USTnote *n)
+{
+       //wavtool <outfile> <infile> <offset> <length> p1 p2 p3 v1 v2 v3 v4 ovr p4 p5 v5
+       
+       //1. get all the parts :D
+       char *wavtool_path = s->wavtool;
+       char *outfile_path = "out.wav";
+       char *infile_path = 
+};
index b805eac..0f2482c 100644 (file)
@@ -215,8 +215,29 @@ int add_note_setting(FILE *fp, USTnote *n)
        
 };
 
+int process_keyval(FILE *fp, char *key, char *value)
+{
+       char c; int i = 0;
+       mode = MODE_KEY;
+       while ((c = getc(fp)) != '\n') {
+               switch (c) {
+                       case '=':
+                               mode = MODE_VAL;
+                               key[i] = '\0';
+                               i = 0;
+                               break;
+                       default:
+                               if (mode == MODE_KEY) {
+                                       key[i++] = c;
+                               } else if (mode == MODE_VAL) {
+                                       value[i++] = c;
+                               };
+                               break;
+               };
+       };
+       value[i] = '\0';
+       return 1;
+};
 
 
-               
-
        
index f2a050d..6327ae0 100644 (file)
--- a/useful.c
+++ b/useful.c
@@ -152,3 +152,22 @@ int same(char *a, char *b)
        return 1;
 };
 
+const char *midi_key[128] = {
+       "C-1", "C#-1", "D-1", "D#-1", "E-1", "F-1", "F#-1", "G-1", "G#-1", "A-1", "A#-1", "B-1"
+       "C0", "C#0", "D0", "D#0", "E0", "F0", "F#0", "G0", "G#0", "A0", "A#0", "B0"
+       "C1", "C#1", "D1", "D#1", "E1", "F1", "F#1", "G1", "G#1", "A1", "A#1", "B1"
+       "C2", "C#2", "D2", "D#2", "E2", "F2", "F#2", "G2", "G#2", "A2", "A#2", "B2"
+       "C3", "C#3", "D3", "D#3", "E3", "F3", "F#3", "G3", "G#3", "A3", "A#3", "B3"
+       "C4", "C#4", "D4", "D#4", "E4", "F4", "F#4", "G4", "G#4", "A4", "A#4", "B4"
+       "C5", "C#5", "D5", "D#5", "E5", "F5", "F#5", "G5", "G#5", "A5", "A#5", "B5"
+       "C6", "C#6", "D6", "D#6", "E6", "F6", "F#6", "G6", "G#6", "A6", "A#6", "B6"
+       "C7", "C#7", "D7", "D#7", "E7", "F7", "F#7", "G7", "G#7", "A7", "A#7", "B7"
+       "C8", "C#8", "D8", "D#8", "E8", "F8", "F#8", "G8", "G#8", "A8", "A#8", "B8"
+       "C9", "C#9", "D9", "D#9", "E9", "F9", "F#9", "G9"
+};
+
+int midi_int_to_text(int *midi) {
+       return midi_key[midi];
+};
+       
+
index 5eb9088..b0f56be 100644 (file)
@@ -45,6 +45,12 @@ VBR=<seemingly the pitch...> *actually this might be just vibrato??? //yeah just
 PBS, PBW, PBY, PBM -- pitch
 
 
+VBR: vibrato!
+format:
+VBR=length,cycle,depth,in,out,phase,pitch,?
+
+
+
 #At the end#
 [#TRACKEND]
 
diff --git a/utau.h b/utau.h
index 7cc76ae..9b893d7 100644 (file)
--- a/utau.h
+++ b/utau.h
@@ -22,6 +22,8 @@ int report_error(char *msg, char *portion, char *program);
 int add_str_onto_str(char *input, char *output);
 char *ask_for_input(char *prompt); //DO NOT FREE RETURNED MEMORY, USE IMMEDIATELY
 int same(char *a, char *b);
+int   midi_text_to_int(char *midi);
+char *midi_int_to_text(int  *midi);
 
 //base64.c
 int encode_pitch_array_base_64(char buffer[],int data[], int data_length);