Skip to content

Commit

Permalink
not much
Browse files Browse the repository at this point in the history
  • Loading branch information
James Morris committed Dec 13, 2015
1 parent 08e9639 commit f6927ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -41,6 +41,7 @@ CMakeCache.txt
cmake_install.cmake

Makefile.am
install_manifest.txt

sandbox/test

Expand Down
2 changes: 1 addition & 1 deletion AUTHORS
Expand Up @@ -8,7 +8,7 @@ Petri-Foo AUTHORS
of deprecated GUI code, etc, etc, etc.


* Brenden Jones <brendan.jones.it@gmail.com>
* Brendan Jones <brendan.jones.it@gmail.com>

Added auto-preview and a keyboard shortcut to sample-selector,
and minimum and maximum velocity values for patch.
Expand Down
2 changes: 1 addition & 1 deletion gui/sampletab.c
Expand Up @@ -141,7 +141,7 @@ static void set_mode(SampleTabPrivate* p)
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p->reverse_check)))
mode |= PATCH_PLAY_REVERSE;

if (mode & PATCH_PLAY_LOOP
if ((mode & PATCH_PLAY_LOOP)
&& gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p->to_end_check)))
{
mode |= PATCH_PLAY_TO_END;
Expand Down
4 changes: 2 additions & 2 deletions libpetrifoo/patch_private/patch_data.c
Expand Up @@ -238,15 +238,15 @@ float const* patch_mod_id_to_pointer(int id, Patch* p, PatchVoice* v)
return &((*cc_arr)[p->channel][0]);
}

if (id & MOD_SRC_EG && v)
if ((id & MOD_SRC_EG) && v)
{
id &= ~MOD_SRC_EG;

if (id < VOICE_MAX_ENVS)
return adsr_output(v->env[id]);
}

if (id & MOD_SRC_VLFO && v)
if ((id & MOD_SRC_VLFO) && v)
{
id &= ~MOD_SRC_VLFO;

Expand Down
3 changes: 0 additions & 3 deletions libpetrifoo/pf_error.c
Expand Up @@ -24,8 +24,6 @@
#include "pf_error.h"
#include "petri-foo.h"

#include <stdio.h>

static int last_error_no = PF_ERR_INVALID_ERROR;

/* FIXME: still not happy with this... */
Expand Down Expand Up @@ -133,7 +131,6 @@ const char* pf_error_str(int pf_error_no)
case PF_ERR_SAMPLE_SRC_SIMPLE:
return "Secret Rabbit Code resample failed";
default:
printf("uncategorized error number: %d\n", pf_error_no);
return "uncategorized error";
}
}

0 comments on commit f6927ca

Please sign in to comment.