commit 462fc3f4b59587721e6bedd147daf66d9c5f00b4
parent 5546160a531d4245ff1defba20c565f7ffbc6c55
Author: prenev <an2qzavok@gmail.com>
Date: Sat, 10 Apr 2021 17:31:30 +0300
minor fixes
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/machine.c b/machine.c
@@ -67,7 +67,7 @@ int16_t sprog[1024*3] = {
void
vm_set(int16_t *vm)
{
- memcpy(&vm[VM_PROG_START], sprog, 1024 * 3);
+ memcpy(vm + VM_PROG_START, sprog, 1024);
vm[VM_ACTIVE] = 0;
}
diff --git a/usynth.c b/usynth.c
@@ -69,11 +69,11 @@ note_on(uint8_t *m)
void
note_off(uint8_t *m)
{
- if (vm[VM_KEY] == m[2]) {
+ //if (vm[VM_KEY] == m[2]) {
// temporary
vm[VM_KEY_ON] = 0;
vm[VM_ACTIVE] = 0;
- }
+ //}
}
void