# Help starting with Traktion Engine

**URL:** <https://forum.juce.com/t/help-starting-with-traktion-engine/38414>\
**Category:** Tracktion Engine\
**Created:** [April 1, 2020, 8:49pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414 "2020-04-01T20:49:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 1, 2020, 8:49pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/1 "2020-04-01T20:49:09Z")

</div>

Hi everyone

First post here.  
I wonder if anyone could help me in what I’m sure is a very nooby/newbie question:

I downloaded the Traktion Engine package, but don’t know where to place it.

I’ve got JUCE working fine, but when I’m trying to open any Traktion’s examples PIP, ProJucer ask me to locate the .h file, in order to launch Visual Studio.

JUCE is in C:  
Traktion Engine in C: too

Thanks in advance  
Alex

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [April 1, 2020, 11:19pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/2 "2020-04-01T23:19:47Z")

</div>

After you clone traction\_engine to a `git submodule init` and `git submodule update` to get juce as a submodule.

Then run the script in `tests\windows` to generate all the example projects.

---

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 2, 2020, 9:56pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/3 "2020-04-02T21:56:43Z")

</div>

Hi @RolandMR, thanks for the help.

> I had in fact downloaded Traktion Engine as a zip file. Ran the bat files in the test folder. Same errors.
> 
> Do I have to do the git steps you mentioned to make it work? I don’t really know about git stuff, I am actually a amateur Asm programmer, and some C.

Please ignore the above, I’ve sorted out and am up and running!!!  
Thanks once again @RolandMR!

---

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 3, 2020, 3:18am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/4 "2020-04-03T03:18:23Z")

</div>

Hi @RolandMR,

Well… I can now compile the examples.  
But for some reason RecordingDemo compiles fine but will not execute anymore… I opened it and played around with it and it was fine.

TestRunner, the same thing. Windows tries to load it and aborts.

No interface appears on screen, only the Windows blue round thing, loading the app.

I restarted to pc, rebuilt them to no avail. Other demo apps run fine.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [April 3, 2020, 10:39am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/5 "2020-04-03T10:39:49Z")

</div>

What branch are you using?  
The `TestRunner` is a command line app so doesn’t have an interface. It’s not really a demo though, more just a utility tool that we use to run our tests on various build servers etc.

Have you tried running from Visual Studio to see where it gets stuck? It could be an audio device problem or similar.

---

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 3, 2020, 9:17pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/6 "2020-04-03T21:17:21Z")

</div>

Hi @dave96,

It triggers the debbuger here:

> RecordingDemo.exe!tracktion\_engine::Edit::Edit(tracktion\_engine::Edit::Options options={…}) Line 490 C++ Symbols loaded.

Which is:

> jassert (state.isValid());  
> jassert (state.hasType (IDs::EDIT));  
> jassert (editProjectItemID.isValid()); // This must be valid or it won’t be able to create temp files etc.

---

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 5, 2020, 6:44pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/7 "2020-04-05T18:44:55Z")

</div>

Guys, any idea?

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [April 6, 2020, 10:00am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/8 "2020-04-06T10:00:17Z")

</div>

Hi there, I just tried to run the Recording Demo and it loaded ok.  
I’m not quite sure what you’ve done to get it in to an invalid state. I imagine you’ve created an Edit file which it is trying to reload on startup but that file hasn’t been fully saved so is empty?

Take a look at line 54 of `RecordingDemo.h`, is this loading an existing Edit? If so, use the debugger to find the path of that Edit and delete the directory (whilst the app is closed).  
This should make it create a new project upon startup.

---

<div class="post-metadata">

**Author:** ![LordAdef](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@LordAdef](https://forum.juce.com/u/LordAdef)\
**Post date:** [April 6, 2020, 9:07pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/9 "2020-04-06T21:07:30Z")

</div>

Hi Dave,

It’s saving it in here:

> C:\Users\Maestro\AppData\Local\Temp\RecordingDemo

But I pin pointed the issue. Could you try and replicate?

> It happens only when one records an audio file.  
> When quitting, the audio files and Edit are in the folder.  
> The prog wont run again “unless” one goes and manually delete the audio files. Edit still retains the audio clip reference.

Deleting the audio file using the delete button wont work either, since the file/files remains in the folder

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [April 7, 2020, 9:58am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/10 "2020-04-07T09:58:17Z")

</div>

Ok, I’ve fixed this now. It was a subtle problem with `File::findChildFiles`. It was expecting a `bool` as the second argument but happily accepted a `const char*`.  
It’s working it’s way through our CI at the moment but it’s currently in a large queue so may be a few hours until it makes it’s way online.

This was the change I made in `examples/common/Utilities.h` if you want to add it locally for now:

```auto
     static inline File findRecentEdit (const File& dir)
     {
- auto files = dir.findChildFiles (File::findFiles, "*.tracktionedit");
+ auto files = dir.findChildFiles (File::findFiles, false, "*.tracktionedit");

```

---

<div class="post-metadata">

**Author:** ![andymaris](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@andymaris](https://forum.juce.com/u/andymaris)\
**Post date:** [April 23, 2020, 10:29pm UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/11 "2020-04-23T22:29:21Z")

</div>

I’ve had pretty good luck with the juce examples, but recently added tracktion and I’m also running into issues with getting started and getting the examples to build.

I THINK I’ve got it downloaded placed correctly. I’m not a git pro- so this was a zip download and dropping into the juce module directory. I ran the scripts to generate the example projects. The projucer seems to see the engine and saves/exports to IDE fine (though it wants to go to 2017 and I’m running 2019)

I’m trying to get the recording demo going and running into compiler errors which I’m guessing has to be due to some configuration misstep.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3d8abc34d449ca3e2778b53b48c86273ae535416.png)

Visual studio 2019 is puking on tracktion\_floataudio……

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3d896b34eca6207cfe9aab75ae7c96bbdbf5b43c.png)

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [April 24, 2020, 8:40am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/12 "2020-04-24T08:40:15Z")

</div>

It’s most likely that you’re using an incompatible version of JUCE if you’ve got the Tracktion Engine and JUCE modules from different times.  
Please use Git to get tracktion\_engine and the juce submodule as detailed in the readme here: [https://github.com/Tracktion/tracktion\_engine\_dev/](https://github.com/Tracktion/tracktion_engine_dev/)

Then you can generate the examples as detailed and see if you can build.

---

<div class="post-metadata">

**Author:** ![andymaris](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@andymaris](https://forum.juce.com/u/andymaris)\
**Post date:** [April 26, 2020, 2:10am UTC](https://forum.juce.com/t/help-starting-with-traktion-engine/38414/13 "2020-04-26T02:10:39Z")

</div>

I grabbed the zip from the developer tree and dropped that into my Juce folder and that did the trick. thx.
