Skip to content
Snippets Groups Projects
Unverified Commit 4dcbfc6e authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Keep same effective time after adjust_internal

parent 531b2269
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,8 @@ function adjust_internal(block::GenericPulse; scale=1., frequency=0., stretch=1. ...@@ -157,7 +157,8 @@ function adjust_internal(block::GenericPulse; scale=1., frequency=0., stretch=1.
GenericPulse( GenericPulse(
block.time .* stretch, block.time .* stretch,
block.amplitude .* scale, block.amplitude .* scale,
block.phase .+ (360. * frequency) .* (block.time .- effective_time(block)) block.phase .+ (360. * frequency) .* (block.time .- effective_time(block)),
block.effective_time * stretch,
) )
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment