Copy link to clipboard
Copied
Hello,
Can you:
1) Prevent clips added with the code, from cutting in half already existing audios in the track, so for example:
var Times=[14,20,34];
You get 3 clips each one has a duration of 10 seconds.
If you insert clip 1 at 14 seconds, and clip 2 at 20 seconds
Then clip 1 will be cut after 6 seconds, leaving its second half AFTER clip 2.
I would like to know if its possible to prevent the second half from moving to after clip2. Meaning Clip 1 will simply keep part 1 instead of having part 1 and part 2 coming after clip2.
second part of clip 1 MUST NOT be generated or must be delted automatically somehow.
2) Reduce the length of an audio (making it faster then), using code. Wether the audio is on a Track (or not yet). Can this be possible with code? (aand even altering other parameters why not), but most importantly just reducing its size (while keeping the entirety of the clip sped up).
Thanks
3) Is it possible to code removing a part of an audio clip? sor for an instance if a clip is 5 seconds, but I want to remove the part from sec 3 to sec 4, and leave only 0->3 and 4->5 (togehter in the same clip, meaning we simply got rid of 3->4 within the same clip). Could we somewhat get this level of control?
4) Is it possible to analyse through code "pauses" within the same audio clip (lower audio profil ) and code their "removing" (related to question 3, but simply being able to analyse the audio profil somehow to automate part 3).
Thanks
1) No...but you could use Track.appendClip(), rather than Track.insertClip().
2) Yes; set the in & out points of the projectItem to what you'd like, before calling Track.insertClip(). [Users will appreciate it if you restore the previous in & out, after doing so.]
3) No.
4) No, there's no API around PPro audio analysis.
Sorry, my mistake; Track.overwriteClip(), not Track.appendClip(), is the other option.
Copy link to clipboard
Copied
1) No...but you could use Track.appendClip(), rather than Track.insertClip().
2) Yes; set the in & out points of the projectItem to what you'd like, before calling Track.insertClip(). [Users will appreciate it if you restore the previous in & out, after doing so.]
3) No.
4) No, there's no API around PPro audio analysis.
Copy link to clipboard
Copied
Hello BBB,
Solution 1) did not work, I got an error!
This is a screenshot of my visual code:
2) In and out, ok I will try that for solution 2.
Copy link to clipboard
Copied
Sorry, my mistake; Track.overwriteClip(), not Track.appendClip(), is the other option.
Copy link to clipboard
Copied
Thanks, I will test right away, as for changing inPoint and outPoint,
I did this:
$.writeln(.. .outPoint.seconds); // it showed a certain time = 6
.. .outPoint.seconds = 3 // tried to MODIFY a new value (SET A NEW VALUE)
$.writeln(.. .outPoint.seconds); // and it OUTPUTED the SAME value (6) not (3)
I even tried to make a new time variable and then do .seconds = newvalue.seconds somehow, same result.
So... how do we ASSIGN/SET new values for the outpoint or inpoint? 🙂
Thanks!
Copy link to clipboard
Copied
I'm away from my desk, but PProPanel contains numerous working examples...
Copy link to clipboard
Copied
Thanks, I looked and found this: https://github.com/Adobe-CEP/Samples/blob/2cd368a84e86e9f5c85ad403140a09aaadbb4fd4/PProPanel/jsx/PPR...
It works with sequences it seems, becuase when i tried both:
- .getInPoint(), and
- .getInPointAsTime()
Both produced errors:
clip.setOutPoint is not a function...
Any other input?
This is to extend or decrease length of a clip without removing parts of it if I am getting this right, right?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more