{"id":6764,"date":"2021-05-02T20:00:00","date_gmt":"2021-05-02T20:00:00","guid":{"rendered":"http:\/\/desres20.netornot.at\/?p=6764"},"modified":"2021-07-04T20:03:08","modified_gmt":"2021-07-04T20:03:08","slug":"real-time-granular-synthesis-in-pd-part-ii","status":"publish","type":"post","link":"http:\/\/desres20.netornot.at\/?p=6764","title":{"rendered":"Real-Time Granular Synthesis in PD &#8211; Part II"},"content":{"rendered":"\n<h3>Apply volume Envelope<\/h3>\n\n\n\n<p>Now that we have set the starting point of the grain, we need to also apply a volume envelope. This envelope will also define how long the short audio segment will play. In the following example the small chunk of audio has a length of 100ms.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"639\" src=\"http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3-1024x639.png\" alt=\"\" class=\"wp-image-6765\" srcset=\"http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3-1024x639.png 1024w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3-300x187.png 300w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3-768x479.png 768w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3-1536x958.png 1536w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure3.png 1908w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Volume Envelope; Source: Kaliakatsos-Papakostas, 2016<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3>Pitch up \/ Pitch down<\/h3>\n\n\n\n<p>When the playhead is moved towards the recording head, the audio gets pitched up or down, because it is played back faster or slower. To make it slower we need to increase the delay time in de vd~ object. Its done by the line~ object on top of the vd~ object. In the following example the playhead moves from 300ms to 400ms.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"620\" src=\"http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5-1024x620.png\" alt=\"\" class=\"wp-image-6766\" srcset=\"http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5-1024x620.png 1024w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5-300x182.png 300w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5-768x465.png 768w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5-1536x930.png 1536w, http:\/\/desres20.netornot.at\/wp-content\/uploads\/2021\/07\/figure5.png 1930w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Controlling a Grain; Source: Kaliakatsos-Papakostas, 2016<\/figcaption><\/figure>\n\n\n\n<p>We can now control the starting time of a grain, the length and the pitch!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apply volume Envelope Now that we have set the starting point of the grain, we need to also apply a volume envelope. This envelope will also define how long the short audio segment will play. In the following example the small chunk of audio has a length of 100ms. Pitch up \/ Pitch down When<\/p>\n<footer class=\"entry-footer index-entry\">\n<div class=\"post-social pull-left\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fdesres20.netornot.at%2F%3Fp%3D6764\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-facebook\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/twitter.com\/home?status=http%3A%2F%2Fdesres20.netornot.at%2F%3Fp%3D6764\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-twitter\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fdesres20.netornot.at%2F%3Fp%3D6764&#038;title=Real-Time+Granular+Synthesis+in+PD+%26%238211%3B+Part+II\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-linkedin\" aria-hidden=\"true\"><\/i><\/a><\/div>\n<p class=\"link-more\"><a href=\"http:\/\/desres20.netornot.at\/?p=6764\" class=\"more-link\">Continue reading <span class=\"meta-nav\">\u2192<\/span><\/a><\/p>\n<\/footer>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/posts\/6764"}],"collection":[{"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6764"}],"version-history":[{"count":1,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/posts\/6764\/revisions"}],"predecessor-version":[{"id":6767,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=\/wp\/v2\/posts\/6764\/revisions\/6767"}],"wp:attachment":[{"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6764"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/desres20.netornot.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}