Beispiel #1
0
	void onProcess(AudioIOData& io){
    while(io()){
      float2 s = float2(io.out(0), io.out(1));
      s = chorus(s)*0.5;
      io.out(0) += s[0];
      io.out(1) += s[1];
    }
  }
Beispiel #2
0
int main(void)
{
    printf("\n");
    for (int i = 0; i < 10; i++)
    {
        // get text for verse
        getverse(i);
        
        // sing verse
        printf("This old man, he played %s\n", s1);
        printf("He played knick-knack %s\n", s2);
        chorus();
    }
    
    return 0;
}
Beispiel #3
0
QVariant Part::getProperty(P_ID id) const
      {
      switch (id) {
            case P_ID::VISIBLE:
                  return QVariant(_show);
            case P_ID::USE_DRUMSET:
                  return instrument()->useDrumset();
            case P_ID::PART_VOLUME:
                  return volume();
            case P_ID::PART_MUTE:
                  return mute();
            case P_ID::PART_PAN:
                  return pan();
            case P_ID::PART_REVERB:
                  return reverb();
            case P_ID::PART_CHORUS:
                  return chorus();
            default:
                  return QVariant();
            }
      }
Beispiel #4
0
int main(void)
{
    // ask user for number
    printf("How many bottles will there be? ");
    int n = GetInt();

    // exit upon invalid input
    if (n < 1)
    {
        printf("Sorry, that makes no sense.\n");
        return 1;
    }

    // sing the annoying song
    printf("\n");
    for (int i = n; i > 0; i--)
    {
       chorus(i);
    }

    // exit when song is over
    printf("Wow, that's annoying.\n");
    return 0;
}