This shows you the differences between two versions of the page.
|
pm:prj2023:apredescu:sintetizator [2023/05/28 23:18] radu_andrei.popescu [Software Design] |
pm:prj2023:apredescu:sintetizator [2023/05/28 23:36] (current) radu_andrei.popescu |
||
|---|---|---|---|
| Line 159: | Line 159: | ||
| ... | ... | ||
| </code> | </code> | ||
| + | |||
| + | De asemenea, pentru a converti valoarea input-ului MIDI într-o notă muzicală, am creat propria bibliotecă. | ||
| + | **input_converter.cpp:** | ||
| + | <code> | ||
| + | #include "input_converter.h" | ||
| + | |||
| + | char* MIDI_to_note(int note) { | ||
| + | if (note == 60) | ||
| + | return "C1"; | ||
| + | if (note == 61) | ||
| + | return "C#1"; | ||
| + | if (note == 62) | ||
| + | return "D1"; | ||
| + | if (note == 63) | ||
| + | return "D#1"; | ||
| + | if (note == 64) | ||
| + | return "E1"; | ||
| + | if (note == 65) | ||
| + | return "F1"; | ||
| + | if (note == 66) | ||
| + | return "F#1"; | ||
| + | if (note == 67) | ||
| + | return "G1"; | ||
| + | if (note == 68) | ||
| + | return "G#1"; | ||
| + | if (note == 69) | ||
| + | return "A1"; | ||
| + | if (note == 70) | ||
| + | return "A#1"; | ||
| + | if (note == 71) | ||
| + | return "B1"; | ||
| + | return ""; | ||
| + | } | ||
| + | </code> | ||
| + | |||
| + | ===== Rezultate Obţinute ===== | ||
| + | |||
| + | <note tip> | ||
| + | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | ||
| + | </note> | ||
| + | |||
| + | ===== Concluzii ===== | ||
| + | |||
| + | ===== Download ===== | ||
| + | |||
| + | <note warning> | ||
| + | O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului: surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-). | ||
| + | |||
| + | Fişierele se încarcă pe wiki folosind facilitatea **Add Images or other files**. Namespace-ul în care se încarcă fişierele este de tipul **:pm:prj20??:c?** sau **:pm:prj20??:c?:nume_student** (dacă este cazul). **Exemplu:** Dumitru Alin, 331CC -> **:pm:prj2009:cc:dumitru_alin**. | ||
| + | </note> | ||
| + | |||
| + | ===== Jurnal ===== | ||
| + | |||
| + | <note tip> | ||
| + | Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului. | ||
| + | </note> | ||
| + | |||
| + | ===== Bibliografie/Resurse ===== | ||
| + | |||
| + | <note> | ||
| + | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | ||
| + | </note> | ||
| + | |||
| + | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||