pysynth/seq.py
def freq_conv(self, middle_pitch=440.0):

        """
        Converts our notes values into frequencies.

        We utilise the following algorithm:

        f = mp * 2 ^ ((o * 12 + s) / 12)

        Where:

        f = Frequency of the given number
        mp = Middle Pitch - Usually A4 or 440.0
        o = The octave we are on
        s = Steps away from the middle pitch

        The user can select their own middle pitch,
        although it is highly recommended to keep it the way it is!

        :param middle_pitch: Middle pitch in hertz to start at
        :type middle_pitch: float
        :return: The frequency of the note in hertz
        :rtype: float
        """

        # Calculate and return the frequency of the note:

        return middle_pitch * pow(2, (((self.octave * 12) + self.step) / 12))

        Converts our notes values into frequencies.

        We utilise the following algorithm:

        f = mp * 2 ^ ((o * 12 + s) / 12)

        Where:

        f = Frequency of the given number
        mp = Middle Pitch - Usually A4 or 440.0
        o = The octave we are on
        s = Steps away from the middle pitch

        The user can select their own middle pitch,
        although it is highly recommended to keep it the way it is!

        :param middle_pitch: Middle pitch in hertz to start at
        :type middle_pitch: float
        :return: The frequency of the note in hertz
        :rtype: float
        
Converts our notes values into frequencies.
We utilise the following algorithm.





f = Frequency of the given number
mp = Middle Pitch - Usually A4 or 440.0
o = The octave we are on
s = Steps away from the middle pitch

The user can select their own middle pitch,
although it is highly recommended to keep it the way it is!
Converts our notes values into frequencies . We utilise the following algorithm . f = Frequency of the given number mp = Middle Pitch - Usually A4 or 440 . 0 o = The octave we are on s = Steps away from the middle pitch The user can select their own middle pitch although it is highly recommended to keep it the way it is!
def freq_conv(self, middle_pitch=440.0):
        return middle_pitch * pow(2, (((self.octave * 12) + self.step) / 12))
def freq_conv ( self , middle_pitch = 440.0 ) : return middle_pitch * pow ( 2 , ( ( ( self . octave * 12 ) + self . step ) / 12 ) )
Converts our notes values into frequencies.
Converts our notes values into frequencies .
"""
        Converts our notes values into frequencies.

        We utilise the following algorithm:

        f = mp * 2 ^ ((o * 12 + s) / 12)

        Where:

        f = Frequency of the given number
        mp = Middle Pitch - Usually A4 or 440.0
        o = The octave we are on
        s = Steps away from the middle pitch

        The user can select their own middle pitch,
        although it is highly recommended to keep it the way it is!

        :param middle_pitch: Middle pitch in hertz to start at
        :type middle_pitch: float
        :return: The frequency of the note in hertz
        :rtype: float
        """ # Calculate and return the frequency of the note:
The frequency of the note in hertz
The frequency of the note in hertz
float
self
middle_pitch
Middle pitch in hertz to start at
Middle pitch in hertz to start at