Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Daft frequency/period question.

  • 16-05-2010 4:37pm
    #1
    Closed Accounts Posts: 6,408 ✭✭✭


    Ok I know I should be able to figure this out but I'm having a dumb afternoon.

    I've got an array of values in a wavetable, (comupter stuff) 512 in all making up the values in a sine wave. I'm reading through that array once every 512ms, one step every 1ms.

    Now, I want to be able to put in a value of 1 and the table to be read every 1 second, 1Hz.

    So the period of the wave is 512ms, how often should my program step through each value (512) in all so as to read the array every 1 second? :confused:


Comments

  • Closed Accounts Posts: 201 ✭✭ArmCandyBaby


    Do you mean (1000 / 512) = 1.953125 ms for each step?


  • Closed Accounts Posts: 6,408 ✭✭✭studiorat


    Do you mean (1000 / 512) = 1.953125 ms for each step?

    Ho-ho-ho.
    I dunno what I was trying to do find reciprocals or something like that..
    .001953 or something.


    Thanks a million.


Advertisement